@echo off
echo ========================================
echo AI Services Launcher
echo ========================================
echo.

echo Starting services...
echo.

REM Set working directory
cd /d "G:\SongUnityProject\ExtendProjects\work-space"

echo [1/2] Starting AI Chat Service (Port 5050)...
start "AI Chat Service" cmd /k "python app.py"

echo [2/2] Starting File Server (Port 5000)...
start "File Server" cmd /k "cd server && python src\server.py"

echo.
echo ========================================
echo Services Started Successfully!
echo ========================================
echo.
echo Service URLs:
echo   AI Chat Service:  http://localhost:5050
echo   File Server:      http://localhost:5000
echo   Vue App:          http://localhost:5000 (served by File Server)
echo.
echo Notes:
echo   - Both services will run in new command windows
echo   - Close the command windows to stop the services
echo   - Make sure Python environment is properly configured
echo   - Make sure required packages are installed
echo.
echo Press any key to exit launcher...
pause >nul